<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>


</head>
<body>
<h1 onclick="myFunc(event)">adsf</h1>
    <script>
        function myFunc(e){
            console.log(e);
        }
    </script>
</body>
</html>